﻿@using ECG.Utility
@model List<ECG.Common.TagDto>

@if (Model.Any())
{
    <span>Tag: </span>
    var count = 0;
    foreach (var item in Model)
    {
        count++;
        var tLink = Url.Action("ListNewsTagHome", "News", new { id = item.Id, tagname = StringUtil.RemoveSpecialCharactersVn(item.TagName) });
    <a href="@tLink" rel="tag">@item.TagName</a>if (count != Model.Count)
                                          {@Html.Raw(", ")}
    }
}
